package com.itheima.mall.service.umsService;

import com.itheima.pojo.ums.UmsResource;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class UmsResourceService {

    @DubboReference
    private UmsResourceApi umsResourceApi;

    /**
     * 根据关联资源IDS数组查询资源数组
     * @param resourceIds 资源IDS数组
     * @return
     */
    public ArrayList<UmsResource> listResource(ArrayList<Long> resourceIds) {
        return umsResourceApi.listResource(resourceIds);
    }
}
